package com.lungle.warmdiary.app.model.response;

import com.lungle.warmdiary.app.AppException;
import com.lungle.warmdiary.app.model.Base;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.List;


public class User extends Base {
    public static final int CODE_MALE = 1;
    public static final int CODE_FAMALE = 2;

    private int userid;
    private String password;
    private String username;
    private Integer gender;
    private String birthday;
    private String qq;
    private String email;
    private String cellphone;
    private String inviteCode;
    private String verifyCode;
    private int ep;
    private List<Integer> industry;

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public void setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
    }

    public int getEp() {
        return ep;
    }

    public void setEp(int ex) {
        this.ep = ex;
    }

    public List<Integer> getIndustry() {
        return industry;
    }

    public void setIndustry(List<Integer> industry) {
        this.industry = industry;
    }

    //    @Override
//    public int hashCode() {
//        return uid;
//    }
//
//    @Override
//    public boolean equals(Object o) {
//        if (this == o) {
//            return true;
//        }
//        if (!(o instanceof User))
//            return false;
//        if (o == null)
//            return false;
//        User user = (User) o;
//        return user.getUid() == uid;
//    }

    public String getJson() throws JSONException, AppException {
        JSONObject json = new JSONObject();

        return json.toString();

    }


}
